<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="CunhuoNavCtrl">
</ul>
<div class="set_box">
    <h1 class="set_title"><!--配货单-->{{language.TIPS_INVENTORY_PICKING_ORDER}} <span class="title_btn_group"> 
            <a class="title_btn" ng-show="purview['\/CunhuoPeihuoListCtrl\/search'].show == 1" href="javascript:void(0);" ng-click="search();" ><!--查询-->{{language.ACT_INQUIRE}}</a> 
            <a class="title_btn" ng-show="purview['\/CunhuoPeihuoListCtrl\/cunhuo\/peihuo_add'].show == 1" ng-href="#/cunhuo/peihuo_add" ><!--空白要货-->{{language.TIPS_INVENTORY_BLANK_ENQUIRY}}</a> 
            <a class="title_btn"  ng-show="purview['\/CunhuoPeihuoListCtrl\/cunhuo\/peihuo_add_advise'].show ==1" ng-href="#/cunhuo/peihuo_add_advise"><!--建议要货-->{{language.TIPS_INVENTORY_SUGGEST_ENQUIRY}}</a>
        </span></h1>
    <div class="set_cont list_page" >
        <table class="list_table">
            <thead>
                <tr>
                    <th><!--单据编号-->{{language.TIPS_INVENTORY_DOC_CODE}}</th>
                    <th><!--数量-->{{language.TIPS_INVENTORY_NUM}}</th>
                    <th><!--金额-->{{language.TIPS_INVENTORY_MONEY}}</th>
                    <th><!--时间-->{{language.TIPS_INVENTORY_TIME}}</th>
                    <th><!--状态-->{{language.TIPS_INVENTORY_STATUS}}</th>
                </tr>
            </thead>
            <tbody ng-repeat="i in peihuo_list| orderBy:'key':true">
                <tr class="date_num">
                    <td class="date" colspan="4"><!--日期-->{{language.TIPS_INVENTORY_DATE}}：{{i.key}}</td>
                    <td class="num"><span>{{i.value.length}}</span></td>
                </tr>
                <tr class="list_unit"  ng-repeat="peihuo in i.value track by $index" >
                    <td><a ng-href="#/cunhuo/peihuo_detail/{{peihuo.record_code}}">{{peihuo.record_code}}</a></td>
                    <td>{{peihuo.num}}</td>
                    <td>{{peihuo.money|number:2}}</td>
                    <td>{{peihuo.lastchanged}}</td>
                    <td>{{peihuo.is_check|check_ico}}</td>
                </tr>
            </tbody>
        </table>
        <div class="btn_more"><button class="btn" ng-click='scoll.nextpage();' ng-show="is_show"></button></div>
    </div>
</div>
